﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net.Sockets;

namespace RNMazeCom
{
    // used to encode the xml-string as UTF-8
    class UTF8StringWriter : StringWriter
    {
        public UTF8StringWriter()
            : base() {

        }

        public UTF8StringWriter(string xmlString)
            : base(new StringBuilder(xmlString)) {

        }
        
        public override Encoding Encoding
        {
            get
            {
                return Encoding.UTF8;
            }
        }
    }
}
